@extends('webadmin.index')

@section('myStyle')
    <style>
       
        #div{
            width:200px;
        }
    </style>
@endsection
@section('content')
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>品牌修改</span>
    </div>
    <div class="mws-panel-body no-padding">
    	<form action="/brank/update" method="post" class="mws-form" enctype="multipart/form-data">
    		@if (count($errors) > 0)
    		<div class="mws-form-message error">
            	<ul>
		            @foreach ($errors->all() as $error)
		                <li>{{ $error }}</li>
		            @endforeach
		        </ul>
            </div>
            @endif
    		<div class="mws-form-inline">
    			<div class="mws-form-row">
    				<label class="mws-form-label">品牌名称:</label>
    				<div class="mws-form-item">
    					<input type="text" name="name" class="small" value="{{$info->name}}">
    				</div>
    			</div>
                <div class="mws-form-row">
                    <label class="mws-form-label">logo图片:</label>
                    <div class="mws-form-item" id="div">
                    <input type="file" id="input" style="width:50px" name="img">
                    </div>
                </div>
    		</div>
    		<div class="mws-button-row">
    			{{csrf_field()}}
                <input type="hidden" name="id" value="{{$info->id}}">
    			<input type="submit" class="btn btn-danger" value="更新">
    			<input type="reset" class="btn " value="重置">
    		</div>
    	</form>
    </div>    	
</div>
@endsection

@section('title','品牌修改')